package com.gzsxy.esjy.service.statistical;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * @author xiaolong
 * @version 1.0
 * @description: TODO
 * @date 2022/3/16 21:07
 */
@SpringBootApplication
@EnableEurekaClient
@EnableDiscoveryClient
@ComponentScan({"com.gzsxy.esjy"})
@MapperScan("com.gzsxy.esjy.bus.dao") //日志处理必须扫描
@EnableScheduling  //开启定时任务
@Slf4j
//@EnableFeignClients   //自定义注解不需要使用激活openfeign
public class StatisticalMain {

    public static void main(String[] args) {
        SpringApplication.run(StatisticalMain.class,args);
        log.info("统计服务启动成功！！！");
    }
}
